import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import http from '@/utils/http'
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.prototype.$http = http

Vue.directive('btn', (el, binding) => {
  if (!store.state.btnPermission.includes(binding.value)) {
    // el.remove()
    el.style.display = 'none'
  }
})
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
